from tkinter import *
a = int(input())
b = int(input())
k = int(input())

if a < 0 or b < 0 or b + 30 * k >= 500 or a + 20 * k >= 500:
    print('размер не подходит ')
else:
    root = Tk()
    root.title("program_7_1.py")
    root.geometry("500x500")

    canvas = Canvas(bg="white", width=2000, height=2000)
    canvas.pack(anchor=CENTER, expand=1)

    canvas.create_rectangle(a, b, a+10*k, b+20*k, fill="#80CBC4", outline="#004D40")
    canvas.create_rectangle(a+10*k, b+10*k, a+20*k, b+30*k , fill="#80CBC4", outline="#004D40")

root.mainloop()
